﻿<%@ Page Title="" Language="C#" MasterPageFile="../Shared/List.Master" Inherits="System.Web.Mvc.ViewPage<Longtop.Web.WebSite.Admin.Roles.ListModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <thead>
        <tr>
            <th>
                角色名称
            </th>
            <th>
            </th>
        </tr>
    </thead>
    <tbody>
        <% foreach (var item in Model.PagedList) { %>
        <tr>
            <td>
                <%= item.Rolename %>
            </td>
            <td>
             <%--   <%= Html.ActionLink("编辑", "create", new {  id=item.Rolename}) %>
                |--%>
                <%= Html.ActionLink("分配权限", "createpermission", new {id = item.Rolename })%>
                <%--<%= Html.ActionLink("删除", "Delete", new {  id=item.LableId}) %>--%>
            </td>
        </tr>
        <% } %>
    </tbody>
    <%-- <p>
        <%= Html.ActionLink(string.Format("添加新角色到 [{0}]",Model.Lable.Text), "create", new { id=this.ViewContext.RouteData.Values["id"]})%>
    </p>--%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Pager" runat="server">
    <%=Html.Pager(Model) %>
</asp:Content>
